package com.lenovo.vod.player.callback;

import com.lenovo.vod.player.Engine;

import android.widget.SeekBar;

public class SeekBarChangeListener implements SeekBar.OnSeekBarChangeListener {
	private Engine mEngine;

	public SeekBarChangeListener(Engine engine) {
		mEngine = engine;
	}

	@Override
	public void onProgressChanged(SeekBar seekBar, int progress,
			boolean fromUser) {
		if (fromUser) {
			mEngine.seekTo(progress);
		}
	}

	@Override
	public void onStartTrackingTouch(SeekBar seekBar) {
	}

	@Override
	public void onStopTrackingTouch(SeekBar seekBar) {
	}
}
